<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/includes/taglibs.jsp" %>
<spring:eval expression="page.hasPreviousPage()" var="hasPreviousPage"/>
<spring:eval expression="page.hasNextPage()" var="hasNextPage"/>
<spring:eval expression="page.getCurrentPageNo()" var="currentPageNo"/>
<spring:eval expression="page.getTotalPageCount()" var="totalPageCount"/>
<c:if test="${hasPreviousPage}">
	<a href="#" onclick="gotoPage(1,'${param.formName}','${param.formAction}')">第一页</a>&nbsp;&nbsp;
	<a href="#" onclick="gotoPage(${currentPageNo-1},'${param.formName}','${param.formAction}')">上一页</a>
</c:if>
&nbsp;&nbsp;当前第${currentPageNo} 页 &nbsp;&nbsp;
<c:if test="${hasNextPage}">
	<a href="#" onclick="gotoPage(${currentPageNo+1},'${param.formName}','${param.formAction}')">下一页</a>&nbsp;&nbsp;
	<a href="#" onclick="gotoPage(${totalPageCount},'${param.formName}','${param.formAction}')">最后页</a>&nbsp;&nbsp;
</c:if>
总${totalPageCount}页,共${page.totalCount}条记录
<input type="hidden" name="pageNo" id="pageNo">
<script type="text/javascript">
function gotoPage(pageNo,formName,formAction){
	$('pageNo').value = pageNo;
	$(formName).submit();
}
</script>